exports.search_question_answer = function (req, res) {

    var restfulParams = req.routeInfo.restfulParams;
    var skip = restfulParams.skip == undefined ? 0 : restfulParams.skip;

    var limit = restfulParams.limit == undefined ? config.publicConfig.LIMIT : restfulParams.limit;
    //最终结果
    var resultData = {};;
    //任务流创建
    async.waterfall([
        function (cb) {
            R.SEND_HTTP(
                req,
                {
                    url: CORE_APIConfig.coreAPI.search_question_answer + "/fca_uid/" + restfulParams.fca_uid+ "/skip/" + skip + "/limit/" + limit ,
                    method: 'POST',
                    data: {
                        fields: ["u_nickname", "u_header_url","fca_collect_count", "fc_title", "fca_content","fca_create_time","fc_id"].join(",")
                    }
                },
                function (err, data) {
                    //判断是否有错误信息
                    if (err) {
                        return cb(err, data);
                    }

                    resultData.userForumAnswerInfo = data.data;
                    cb();
                }
            );

        }
    ], function (err, result) {

        //返回最终拼接结果
        RES.response(res, true, resultData);

    });

}